﻿using System;
using System.Collections.Generic;
using System.Text;
using AppToolKit.Core.Context.Spring;
using Common.Logging;
using Utility;

namespace BLL.Action.Job
{
    [AutoWiring]
    public class JobFaced
    {
        [AutoWiring]
        public JobManager JobManagerHolder { get; set; }
        [AutoWiring]
        public JobManual JobManualHolder { get; set; }
        ILog log = LogManager.GetLogger(LogDefault.AppDebug);
        public void AutoRun()
        {
            log.Debug("Run");
            JobManagerHolder.Run();
        }
        public void AutoStop()
        {
            log.Debug("Stoping.....");
            JobManagerHolder.OnStop();
            log.Debug("Stop");
        }
        public void ManualRun(List<string> Hotels,List<string> tasks)
        {
            JobManualHolder.ManualRun(Hotels, tasks);
        }
    }
}
